<template>
  <div>

    <el-upload
      action="#"
      :limit="1"
      accept=".png, .jpg, .jpeg, .bmp, .gif, .webp, .psd, .svg, .tiff"
      :auto-upload="false"
      :file-list="fileList"
      :on-change="handleUploadChange"
      :on-remove="handleRemove">
      <template #trigger>
        <div class="flex-column inline-flex">
          <el-button plain icon="el-icon-upload" type="primary" >上传文件</el-button>
<!--          <span class="info">支持扩展名：.rar .zip .doc .docx .pdf .jpg...</span>-->
        </div>
      </template>
    </el-upload>

  </div>
</template>

<script>


export default {
  data() {
    return {
      carUrl:'',
      fileList:[]
    }
  },
  props: {
    upText: {
      type: String,
      default: ''
    }
  },
  methods: {
    handleUploadChange() {

    },

    handleRemove() {

    },
  }

}
</script>
<style lang="scss" scoped>
@import "~@/assets/styles/variables.scss";

.info{
  font-size: 12px;
  color: $black99;
}

</style>
